package oldFiles;
import lejos.nxt.Button;
import lejos.nxt.MotorPort;
import lejos.nxt.SensorPort;

public  class AnalogSimul {
	
	public static void main(String[] args) {
		
		SimpleSensor rightLight = new SimpleLightReader(SensorPort.S1);
		SimpleSensor leftLight = new SimpleLightReader(SensorPort.S4);
		
		SimpleActuator rightMotor = new SimpleMotor(MotorPort.B);
		SimpleActuator leftMotor = new SimpleMotor(MotorPort.C);
		
		SimpleSystem rightSide = new SimpleSystem(rightMotor, leftLight);
		SimpleSystem leftSide = new SimpleSystem(leftMotor, rightLight);
		//SimpleSystem leftSide = new SimpleSystem(leftMotor, rightLight);
		
		while (! Button.ESCAPE.isPressed()) {

			rightSide.update();
			leftSide.update();
			
		}
	
		
	}
	
}
